package com.itic.im.core.handler;

import com.itic.im.core.ImManager;
import com.itic.im.core.util.SoMap;

/**
 * @author wanli.yang
 * @version 1.0
 * @date 2022/1/15 22:12
 */
public class DefaultPersistenceHandler implements PersistenceHandler {


    @Override
    public void pre(Object o) {
    }

    @Override
    public void after(Object o)  {
        SoMap map = (SoMap) o;
        ImManager.getTranslator(map.getString("msgType")).handler(o);
    }
}
